package com.lp.config;

/**
 * 状态码及状态描述
 */
public enum CodeMsg {

    SUCCESS                              (1000, "操作成功"),
    FAIL                                 (1200, "操作失败"),
    FAIL_NULL_TOKEN                      (1203, "token 令牌为空"),
    FAIL_ERROR_TOKEN                     (1204, "token 令牌非法")
    ;

    private Integer code;
    private String msg;

    CodeMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
